<?php
/**
 * 慈善管理
 */
namespace app\admin\model;
use think\Model;

class CharitableClass extends Model
{
    protected $name = 'charitable_class';

    /**
     * 读取分类
     * @param $id   分类ID
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function getDetails($id){
        $data = self::where('id',$id)->find();
        return $data;
    }

}